package com.qf.java2107.mapper;

import com.qf.java2107.pojo.admin;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Map;

public interface IadminMapper {
    /**
     * 查询所有的方法
     * @return
     */
    public ArrayList<admin> selectAll();

    /**
     * 添加方法
     */
    public int insert(admin admin);

    public void returnKey(admin userName);

    public ArrayList<admin> selectAllOfTest(Map<String,Object> map);

    public admin selectOne(@Param("userrname") String userName, @Param("password") String passWord);

    public admin findByIdMapping(String userName);

    public admin findByIdMapping1(String userName);
}
